package com.timer.taskRule.mapper;

import com.timer.taskRule.entity.Permissions;
import com.timer.taskRule.entity.Role;
import com.timer.taskRule.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LoginMapper {

	List<Role> findRoleList(@Param("userName") String userName);

	List<Permissions> findPermissionsList(@Param("roleId") int roleId);

	User findUser(@Param("userName") String userName);
}
